Copyright ã1992 by Scott Hess.  All Rights Reserved.

OSC Sequences

OSC stands for Operating System Command.  By implementing OSC sequences, a terminal emulator can provide non-standard functionality.  Stuart's OSC sequences are of the form `ESC ] Ps ; ... ST', where `...' denotes any string.  ESC is the ASCII ESCape character, and ST is the String Terminator.  ST is defined as `ESC \', but Stuart also accepts any control character as a string terminator.

Ps is an operation code.  Stuart recognizes four values for Ps, the digits 0, 1, 2, and 3.  The first three are xterm-compatible operations, and the last is Stuart-specific:

·	`ESC ] 0 ; ... ST' sets both the window title and the miniwindow title of the receiving window to `...'.

·	`ESC ] 1 ; ... ST' sets the miniwindow title of the receiving window to `...'.

·	`ESC ] 2 ; ... ST' sets the window title of the receiving window to `...'.

·	`ESC ] 3 ; ... ST' sets the Directory preference of the receiving window to `...'.

There is a command-line program provided with Stuart with simplifies output of the above sequences (see Utilities/osc).